/**
 * 版权所有(C) COVISINT 2015-2025
 * Copyright 2015-2025 COVISINT
 * 创建日期：Jul 3, 20174:37:20 PM
 * 创建人：yyang
 */
package com.wechat.framework.messages.oauth;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class OAuthUser {
	
	//获取到的凭证
	@Expose
	@SerializedName("UserId")
	private String userId;

	//手机设备号(由企业微信在安装时随机生成，删除重装会改变，升级不受影响)
	@Expose
	@SerializedName("DeviceId")
	private String deviceId;
	
	//凭证有效时间，单位：秒
	@Expose
	@SerializedName("expires_in")
	private Long expiresIn;
	
	//成员票据，最大为512字节
	@Expose
	@SerializedName("user_ticket")
	private String userTicket;
	
	//非企业成员的标识，对当前企业唯一
	@Expose
	@SerializedName("OpenId")
	private String openId;

	//错误代码
	@Expose
	@SerializedName("errcode")
	private int errcode;
	
	//错误提示
	@Expose
	@SerializedName("errmsg")
	private String errmsg;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public int getErrcode() {
		return errcode;
	}

	public void setErrcode(int errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public Long getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(Long expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getUserTicket() {
		return userTicket;
	}

	public void setUserTicket(String userTicket) {
		this.userTicket = userTicket;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
}
